package net.xxcl.stuManager.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;

import net.xxcl.stuManager.pojo.Teacher;

public class TeacherMapper {
	
	public List<Teacher> login(String number,String password) {
		SqlSession session = DBSessionFactory.getSqlSessionFactory().openSession();
		Map<String, String> map = new HashMap<String, String>();
		map.put("number", number);
		map.put("password", password);
		try {
			return session.selectList("net.xxcl.stuManager.mapper.TeacherMapper.login",map);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}
